package com.prs.crm.domain.oa;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.meeting.MeetSource;

/**
 * OA综合行政车辆保险种
 * @author zhoupeng 2012-4-13
 *
 */
@Entity
@Table(name="oa_VehicleInsurance_type")
public class VehicleInsuranceType extends BaseEntity{
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 险种名称
	 */
	private String name;
	@ManyToOne
	private MeetSource parent;
	
	@OneToMany(mappedBy="parent")
	private Set<VehicleInsuranceType> childs;
	public MeetSource getParent() {
		return parent;
	}
	public void setParent(MeetSource parent) {
		this.parent = parent;
	}
	
	public Set<VehicleInsuranceType> getChilds() {
		return childs;
	}
	public void setChilds(Set<VehicleInsuranceType> childs) {
		this.childs = childs;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
